<nav class="navbar navbar-default" role="navigation" style="margin-bottom: 0;height:70px;">
  <div class="ht-container">
    <!-- 导航头部 -->
    <div class="navbar-header">
      <!-- 品牌名称或logo -->
      <a class="navbar-brand no-padding" href="/cms/">
        <img src="/public/imgs/logo.png" alt="红塔期货" style="display: inline-block;width: 120px;">
      </a>
    </div>
    <!-- 导航项目 -->
    <div class="navbar-right">
      <!-- 一般导航项目 -->
      <ul class="nav navbar-nav">
        {% for item in menu %}
          {% if item.children and item.children.length > 0 %}
            {% if item.isActive %}
              <li class="item dropdown active">
            {% else %}
              <li class="item dropdown">
            {% endif %}
            <a class="dropdown-toggle" data-toggle="dropdown">{{item.label}}</a>
            <ul class="dropdown-menu" role="menu">
              {% for nl in item.children %}
              <li>
                <a href="{{nl.menu.href}}">{{nl.label}}</a>
              </li>
              {% endfor %}
            </ul>
          </li>
          {% elif item.isActive %}
          <li class="item active">
            <a href="{{item.menu.href}}">{{item.label}}</a>
          </li>
          {% else %}
          <li class="item">
            <a href="{{item.menu.href}}">{{item.label}}</a>
          </li>
          {% endif %}
        {% endfor %}
      </ul>
    </div>
  </div>
</nav>